<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
#title {
	background-image: url(images/bg-header.jpg);
	background-repeat: repeat;
	height: 50px;
	width: 1000px;
	margin-right: auto;
	margin-left: auto;
}
#menu {
	font-size: 25px;
	line-height: 30px;
	padding-top: 10px;
	padding-left: 5px;
}
a:link, a:visited {
	color: #999999;
	text-decoration: none;
}
a:hover, a:active {
	color: #CC00FF;	
}
#container {
	margin-right: auto;
	margin-left: auto;
	width: 1000px;
}
#feature-bk {
	background-image: url(images/title1.jpg);
	height: 200px;
	background-repeat: no-repeat;
	width: 1000px;
}
#left {
	float: left;
	width: 320px;
}
#right {
	float: left;
	width: 600px;
}
#left-top {
	font-size: 25px;
	line-height: 30px;
	color: #666666;
	margin-top: 10px;
}
#contactleft-con {
	background-image: url(images/subleft.jpg);
	background-repeat: no-repeat;
	height: 403px;
	width: 303px;
	font-size: 20px;
	color: #666666;
	padding-top: 5px;
}
#r-title {
	font-size: 25px;
	line-height: 30px;
	color: #666666;
	padding-top: 10px;
}
#contable2 {
	line-height: 30px;
	color: #666666;
	margin-left: 10px;
}
#conr-r1 {
	background-image: url(images/arrow-gray.png);
	background-repeat: repeat;
	height: 9px;
}
#clear {
	clear: both;
}
#bottom {
	background-image: url(images/bg-footer2.png);
	background-repeat: no-repeat;
	height: 102px;
	margin-top: 10px;
	padding-top: 30px;
}
#wai {
	background-repeat: repeat;
}
-->
</style>
<script language="javascript" type="">
function Mycheck(){
if(form1.User[username].value=="")
{
alert("用户名不能为空！！");return false;}
if(form1.User[password].value=="")
{alert("密码不能为空！！");return false;}
if (form1.User[password2].value=="")
{alert("确认密码不能为空！！");return false;}
if(form1.User[password].value!=form1.User[password2].value)
{alert('您两次输入的密码不一致！');return false;}
if(form1.User[question].value=="")
{alert("密保问题不能为空！！");return false;}
if(form1.User[answer].value=="")
{alert("密保答案不能为空！！");return false;}
if (form1.User[address].value=="")
{alert("家庭住址不能为空，请填写正确的地址！！");return false;}

if (form1.User[tel].value=="")
{alert("联系电话不能为空！！");return false;}
if (isNaN(form1.User[tel].value))
{alert("联系电话必须为数字型！！");return false;}
if (form1.User[email].value=="")
{alert("email不能为空，请填写正确的邮件！！");return false;}
var i=form1.User[email].value.indexOf("@")
var j=form1.User[email].value.indexOf(".")
if ((i<0)||(i-j>0)||(j<0))
{alert("您输入的Email格式不正确，请重新输入！！");return false;}
form1.submit();
}
</script>

</head>

<body>
<div id="wai">
<div id="container">
  <div id="title">
      <div id="menu"><table width="640" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="74"><a href="#">首页</a></td>
    <td width="85"><a href="#" >博文</a></td>
    <td width="119"><a href="#">发日志</a></td>
    <td width="115"><a href="#">留言板</a></td>
    <td width="93"><a href="#"> 关于我</a></td>
    <td width="154"><a href="#"> xxxx</a></td>
    </tr>
</table>
    </div>
  </div>
  
  <div id="feature-bk"></div>
  <div id="left">
  <div id="left-top">欢迎你注册会员</div>
  <div id="contactleft-con">
        <p>为了得到更多信息，更加详细的信息，</p>
        <p>你可以通过下面这些方式联系我们。</p>
        <table width="300" border="0" cellpadding="0" cellspacing="0" id="table1">
          <tr>
            <td width="18" height="80"><img src="images/icon-phone.png" width="12" height="10" hspace="10" /></td>
            <td width="382">153-454-231<br />
132-567-356</td>
          </tr>
          <tr>
            <td height="120"><img src="images/icon-email.png" width="13" height="9" hspace="10" /></td>
            <td>xiyan@163.com</td>
          </tr>
          <tr>
            <td><img src="images/icon-address.png" width="13" height="12" hspace="10" /></td>
            <td>http://hao.360.cn/</td>
          </tr>
        </table>
        <p>&nbsp;</p>
      </div>
    </div>
<div id="right">
  <div id="r-title">请填写以下注册信息：</div>
  <div id="conr-r1"></div>
      <table width="500" border="0" cellpadding="0" cellspacing="0" id="contable2">
      <form name="form1" method="post" action="index.php?r=user/create" onSubmit="return Mycheck()">
    <tr>
    <td >用户名</td>
    <td ><input name="User[username]" type="text" size="15" >*</td>
  </tr>
  <tr>
    <td height="48">密码</td>
    <td><input name="User[password]" type="password" size="15" />*</td>
  </tr>
  <tr>
    <td >确认密码</td>
    <td><input name="password2" type="password"size="15" />*</td>
  </tr>
  <tr>
    <td height="54">性别</td>
    <td><label>
      <input type="radio" name="User[sex]" value="1" />
    男 
    <input type="radio" name="User[sex]" id="radio2" value="2" />
    女</label></td>
  </tr>
  <tr>
    <td height="48">密保问题</td>
    <td> <input name="User[question]" type="text"  size="30" />      
       *如你母亲姓名？</td>
  </tr>
  <tr>
    <td height="48">设置答案</td>
    <td> <input name="User[answer]" type="text" size="30" /></td>
  </tr>
   <tr>
    <td height="48" >Email</td>
    <td><input name="User[email]" type="text"  size="30" /></td>
  </tr>
   <tr>
    <td height="48">地址</td>
    <td> <input name="User[address]" type="text"  size="30" /></td>
  </tr>
   <tr>
    <td height="48">联系电话</td>
    <td> <input name="User[tel]" type="text"  size="30" /></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><label>
      <input type="submit" name="submit2"  value="提交信息" />&nbsp;&nbsp;
      <input type="reset" name="reset" value="重置" />
    </label></td>
  </tr>
</form>
      </table>
<p>&nbsp;</p></div>
  <div id="clear"></div>
  
  <div id="bottom">
  <div></div>
  </div>
</div>
</div>
</body>
</html>
